package com.shop.milk_tea_shop.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 商品附加信息分类表：	商品的附加信息，温度、甜度、小料等
 * </p>
 *
 * @author yjw
 * @since 2024-06-16
 */
@TableName("item_add_category_table")
@ApiModel(value = "ItemAddCategory对象", description = "商品附加信息分类表：	商品的附加信息，温度、甜度、小料等")
public class ItemAddCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id（5位数字，前20%）")
    @TableId(value = "add_category_id", type = IdType.AUTO)
    private Long addCategoryId;

    @ApiModelProperty("附加信息分类")
    private String addCategoryName;

    @ApiModelProperty("状态（0：删除，1：正常）")
    private Integer status;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("创建用户")
    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime alterTime;

    @ApiModelProperty("修改用户")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long alterUserId;

    public Long getAddCategoryId() {
        return addCategoryId;
    }

    public void setAddCategoryId(Long addCategoryId) {
        this.addCategoryId = addCategoryId;
    }

    public String getAddCategoryName() {
        return addCategoryName;
    }

    public void setAddCategoryName(String addCategoryName) {
        this.addCategoryName = addCategoryName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public LocalDateTime getAlterTime() {
        return alterTime;
    }

    public void setAlterTime(LocalDateTime alterTime) {
        this.alterTime = alterTime;
    }

    public Long getAlterUserId() {
        return alterUserId;
    }

    public void setAlterUserId(Long alterUserId) {
        this.alterUserId = alterUserId;
    }

    @Override
    public String toString() {
        return "ItemAddCategory{" +
            "addCategoryId = " + addCategoryId +
            ", addCategoryName = " + addCategoryName +
            ", status = " + status +
            ", createTime = " + createTime +
            ", createUserId = " + createUserId +
            ", alterTime = " + alterTime +
            ", alterUserId = " + alterUserId +
        "}";
    }
}
